org.eclipse.vtp.framework.engine.osgi
Class OSGiUtils

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.osgi.OSGiUtils

public class OSGiUtils
extends java.lang.Object

Utilities for the OSGi environment.

Author:
Lonnie Pryor

Constructor Summary
OSGiUtils()
           
 
Method Summary
static org.osgi.framework.Bundle findBundle(org.eclipse.core.runtime.IContributor contributor, org.osgi.framework.Bundle[] bundles)
          Finds the bundle that matches the specified contributor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiUtils

public OSGiUtils()
Method Detail

findBundle

public static org.osgi.framework.Bundle findBundle(org.eclipse.core.runtime.IContributor contributor,
                                                   org.osgi.framework.Bundle[] bundles)
Finds the bundle that matches the specified contributor.

Parameters:
contributor - The contributor to match to a bundle.
bundles - The bundles to search for a match.
Returns:
The bundle that matched the specified contributor.